<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<h:panelGrid columns="2">
		<h:panelGrid id="promotionInfoInputPanel" columns="2"
			rendered="#{promotionModel.current != null}" style="width:100%">
			<h:outputText value="id" />
			<h:outputText value="#{promotionModel.current.id}" />
			<h:outputText value="Number" />
			<h:outputText value="#{promotionModel.current.number}" />
			<h:outputText value="Title" style="width:200px" />
			<h:panelGrid columns="5">
				<h:outputText value="#{promotionModel.current.title}" />
				<h:outputText value="Chinese" />
				<h:outputText value="#{promotionModel.current.chineseTitle}" />
				<h:outputText value="French" />
				<h:outputText value="#{promotionModel.current.frenchTitle}" />
			</h:panelGrid>
			<h:outputText value="Start date" />
			<h:outputText pattern="EEE, dd MMM, yyyy"
				value="#{promotionModel.current.startDate}" />
			<h:outputText value="End date" />
			<h:outputText pattern="EEE, dd MMM, yyyy"
				value="#{promotionModel.current.endDate}" />
			<h:outputText value="Discount rate" />
			<h:outputText value="#{promotionModel.current.rewardRate}" />
			<h:outputText value="Minimun amount" />
			<h:outputText value="#{promotionModel.current.minAmount}" />
			<h:outputText value="Marketing media" />
			<h:outputText value="#{promotionModel.current.marketingMedia}" />
			<h:outputText value="Promotion Code" />
			<h:outputText value="#{promotionModel.current.code}" />
			<h:outputText value="Comments" />
			<h:panelGrid columns="5">
				<h:inputTextarea value="#{promotionModel.current.comments}"
					disabled="true" />
				<h:outputText value="Chinese" />
				<h:inputTextarea value="#{promotionModel.current.chineseComments}"
					disabled="true" />
				<h:outputText value="French" />
				<h:inputTextarea value="#{promotionModel.current.frenchComments}"
					disabled="true" />
			</h:panelGrid>
		</h:panelGrid>

	</h:panelGrid>
</ui:composition>

</html>